<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
  <title>Description of ari2geodeg</title>
  <meta name="keywords" content="ari2geodeg">
  <meta name="description" content="ARI2GEODEG converts arithmetic angles to geographic angles.">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="m2html &copy; 2005 Guillaume Flandin">
  <meta name="robots" content="index, follow">
  <link type="text/css" rel="stylesheet" href="../../m2html.css">
  <script type="text/javascript">
    if (top.frames.length == 0) { top.location = "../../index.html"; };
  </script>
</head>
<body>
<a name="_top"></a>
<!-- ../menu.html trunk --><!-- menu.html utils -->
<h1>ari2geodeg
</h1>

<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="box"><strong>ARI2GEODEG converts arithmetic angles to geographic angles.</strong></div>

<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="box"><strong>function [geoAng] = ari2geodeg(ariAng) </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="fragment"><pre class="comment">ARI2GEODEG converts arithmetic angles to geographic angles.
 ariAng is a scalar, vector, or matrix of angles in degrees,
 such as those produced with atan() or atan2().
 geoAng is an output of size(ariAng) with angles converted to
 geographic headings (North = 0, with angles positive
 clockwise)

 EXAMPLE USAGE
   ariAng = 150
   [geoAng] = mcsADCP.ari2geodeg(ariAng)
   geoAng =
 
   300

 Frank L. Engel, USGS

 SEE ALSO: mcsADCP, <a href="geo2arideg.html" class="code" title="function [ariAng] = geo2arideg(geoAng)">geo2arideg</a></pre></div>

<!-- crossreference -->
<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
This function calls:
<ul style="list-style-image:url(../../matlabicon.gif)">
</ul>
This function is called by:
<ul style="list-style-image:url(../../matlabicon.gif)">
<li><a href="VMT_BuildCustomFlatFile.html" class="code" title="function varargout = VMT_BuildCustomFlatFile(varargin)">VMT_BuildCustomFlatFile</a>	--- THE VELOCITY MAPPING TOOLBOX ---</li><li><a href="parseSonTekVMT.html" class="code" title="function A = parseSonTekVMT(fullName)">parseSonTekVMT</a>	PARSESONTEK reads MAT file output from RSL for use in VMT</li></ul>
<!-- crossreference -->



<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function [geoAng] = ari2geodeg(ariAng)</a>
0002 <span class="comment">%ARI2GEODEG converts arithmetic angles to geographic angles.</span>
0003 <span class="comment">% ariAng is a scalar, vector, or matrix of angles in degrees,</span>
0004 <span class="comment">% such as those produced with atan() or atan2().</span>
0005 <span class="comment">% geoAng is an output of size(ariAng) with angles converted to</span>
0006 <span class="comment">% geographic headings (North = 0, with angles positive</span>
0007 <span class="comment">% clockwise)</span>
0008 <span class="comment">%</span>
0009 <span class="comment">% EXAMPLE USAGE</span>
0010 <span class="comment">%   ariAng = 150</span>
0011 <span class="comment">%   [geoAng] = mcsADCP.ari2geodeg(ariAng)</span>
0012 <span class="comment">%   geoAng =</span>
0013 <span class="comment">%</span>
0014 <span class="comment">%   300</span>
0015 <span class="comment">%</span>
0016 <span class="comment">% Frank L. Engel, USGS</span>
0017 <span class="comment">%</span>
0018 <span class="comment">% SEE ALSO: mcsADCP, geo2arideg</span>
0019 
0020 
0021 ariAng(ariAng&lt;0) = ariAng(ariAng&lt;0) + 360;
0022 ariAng = ariAng + 270;
0023 ariAng(ariAng&gt;360) = ariAng(ariAng&gt;360)-360;
0024 geoAng = 360-ariAng;
0025 <span class="keyword">end</span> <span class="comment">% function ari2geodeg</span></pre></div>
<hr><address>Generated on Wed 04-Jun-2014 14:21:02 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> &copy; 2005</address>
</body>
</html>